﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities.Auditing;
using Abp.UI;
using Camc.Duct.TaskProcess.Process;
using Camc.Duct.TaskProcess.Request;
using Camc.Duct.TaskProcess.Worker;
using JetBrains.Annotations;

namespace Camc.Duct.TaskProcess.TaskLine
{
	public class LineInstance: FullAuditedEntity<Guid>
	{
		public LineInstance()
		{
			
		}
		public string TemplateName { set; get; }
		public string ProductionDrawingCode { set; get; }
		public string ProductionSpecial { set; get; }
		public string TaskModel { set; get; }
		public string TaskKey { set; get; }
		public ICollection<LineInstanceExecuteHistory> Historys { set; get; }
		public TaskLineState State { set; get; }
		public ICollection<NodeForInstance> InstanceNodeList { set; get; }
		public int Quantity { set; get; }
		public DateTime DeliveryTime { set; get; }
		[CanBeNull] public WorkingTeam WorkingTeam { set; get; }

		[ForeignKey("WorkingTeam")]
		public int? WorkingTeamId { get; set; }
		public ICollection<RequestBase> RequestBaseList { set; get; }
	

	}
}
